package highlighter.ast.impl;

import highlighter.visitor.IASTVisitor;

public class AssignStmt extends Statement {

	private Identifier id;
	private ArithmeticExpr expr;

	public AssignStmt(Identifier id, ArithmeticExpr expr) {
		this.id = id;
		this.expr = expr;
	}

	public Identifier getId(){
		return id;
	}
	
	public ArithmeticExpr getExpr() {
		return expr;
	}
	
	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
